package com.wsz.eduorder.client;

import com.wsz.commonutils.ordervo.CourseUtils;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient("service-edu")
public interface EduClient {
    @ApiOperation("用户买课程通过课程Id获取课程信息")
    @PostMapping("/eduservice/coures/getCourseInfoOrder/{courseId}")
    public CourseUtils getCourseInfoOrder(@PathVariable("courseId") String courseId);
}
